Inheritance diagram for IVolumePrimitive:

Public Member Functions | |
| virtual MCCOMErr MCCOMAPI | GetVolumeDensity (const TVector3 &point, TMCColorRGBA &filter, TMCColorRGBA &glow)=0 |
| virtual MCCOMErr MCCOMAPI | GetVolumeAttenuation (const TVector3 &from, const TVector3 &to, TMCColorRGBA &attenuation, boolean isShadowCasting)=0 |
There are two methods for implementing a volume primitive. IVolumePrimitive::GetVolumedensity provides a filter color and a glow color for each point of the volume primitive. IVolumePrimitive::GetVolumeAttenuation calculates the color from a ray.
|
||||||||||||||||||||
|
Called by the shell to get a color from a ray going thru a volume primitive.
|
|
||||||||||||||||
|
Called during rendering to calculate a color from a ray going thru the volume primitive. The shell calls this method to get a filtered color and a glow color for many points on the ray. It begins with a base color from an object or background color behind the volumetric primitive to calculate the color within the volume: Volume Color = (base color * filtered color) + glow
|
1.4.5